/**
 * video time event
 * Copyright (c) 2009 cmiscm.com
 * date of final modification : 2009. 11. 20 
*/
package com.cmiscm.videos.events
{
	import flash.events.Event;

	public class VideoTimeEvent extends Event
	{
		public static const CHANGE_TIME:String = "change_time";
		
		public var realTime:Number;
		public var totalMin:int;
		public var totalSec:int;
		public var curMin:int;
		public var curSec:int;		
		
		public function VideoTimeEvent(type:String, $real_time:Number=0, $total_min:int=0, $total_sec:int=0, $min:int=0, $sec:int=0, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.realTime = $real_time;
			this.totalMin = $total_min;
			this.totalSec = $total_sec;
			this.curMin = $min;
			this.curSec = $sec;
		}
		
		override public function clone():Event
		{
			return new VideoTimeEvent(this.type, this.realTime, this.totalMin, this.totalSec, this.curMin, this.curSec, this.bubbles, this.cancelable);
		}
		
	}
}